// 补贴申请配置管理
const ofsSubsidyApplyConfigMod = (request) => {
  return {
    view_ofsSubsidyApplyConfig_page(query = {}) {
      return request('/application/ofsSubsidyApplyConfig/page', {
        method: 'post',
        data: query,
      })
    },
    view_ofsSubsidyApplyConfig_add(query = {}) {
      return request('/application/ofsSubsidyApplyConfig/add', {
        method: 'post',
        data: query,
      })
    },
    view_ofsSubsidyApplyConfig_edit(query = {}) {
      return request('/application/ofsSubsidyApplyConfig/edit', {
        method: 'post',
        data: query,
      })
    },
    view_ofsSubsidyApplyConfig_del(query = {}) {
      return request('/application/ofsSubsidyApplyConfig/del', {
        method: 'post',
        data: {
          batchesDel: query,
        },
      })
    },
    // 查询补贴申请配置管理列表
    view_ofsSubsidyApplyConfig_list(query) {
      return request(`/application/ofsSubsidyApplyConfig/list`, {
        method: 'post',
        data: query,
      })
    },
    // 详情
    view_ofsSubsidyApplyConfig_view(id) {
      return request(`/application/ofsSubsidyApplyConfig/${id}`, {
        method: 'get',
      })
    },
    // 条件查询工作流审批配置方案信息
    view_ofsWorkflowScheme_acquire(query) {
      return request(`/application/ofsWorkflowScheme/acquire`, {
        method: 'post',
        data: query,
      })
    },
    // 分页查询回访记录
    view_followUpRecord_page(query) {
      return request(`/application/followUpRecord/page`, {
        method: 'post',
        data: query,
      })
    },
    // 分页查询指静脉库
    view_iccVenaDigitalis_page(query) {
      return request(`/application/iccVenaDigitalis/page`, {
        method: 'post',
        data: query,
      })
    },
    // 分页查询指静脉重新采集审批
    view_iccVeinApprove_page(query) {
      return request(`/application/iccVeinApprove/page`, {
        method: 'post',
        data: query,
      })
    },
    // 修改指静脉重新采集审批
    view_iccVeinApprove_edit(query) {
      return request(`/application/iccVeinApprove/edit`, {
        method: 'post',
        data: query,
      })
    },
    // 第三方分页查询补贴申请统计
    view_ofsSubsidyApplyThirdParty_countPage(query) {
      return request(`/application/ofsSubsidyApply/thirdParty/countPage`, {
        method: 'post',
        data: query,
      })
    },
    // 三方分页查询补贴申请统计查看详情
    view_ofsSubsidyApplyThirdParty_countDetails_page(query) {
      return request(`/application/ofsSubsidyApply/thirdParty/countDetails/page`, {
        method: 'post',
        data: query,
      })
    },
    // （浦口区区补）综合运营补贴表
    view_pukou_metadata_month(query) {
      return request(`/bussiness/comprehensivesubsidy/puKou/applicationMonth`, {
        method: 'post',
        data: query,
      })
    },
    // (浦口区区补)养老机构综合运营补贴核算人员统计表
    view_puKou_metadata_statistics(query) {
      return request(`/bussiness/comprehensivesubsidy/puKou/subsidyStatistics`, {
        method: 'post',
        data: query,
      })
    },
  }
}
// 工作流审批配置表
const workflowMod = (request) => {
  return {
    view_workflow_page(query = {}) {
      return request('/application/workflow/page', {
        method: 'post',
        data: query,
      })
    },
    view_workflow_add(query = {}) {
      return request('/application/workflow/add', {
        method: 'post',
        data: query,
      })
    },
    view_workflow_edit(query = {}) {
      return request('/application/workflow/edit', {
        method: 'post',
        data: query,
      })
    },
    view_workflow_del(query = {}) {
      return request('/application/workflow/del', {
        method: 'post',
        data: {
          batchesDel: query,
        },
      })
    },
    view_workflow_list(query = {}) {
      return request('/application/workflow/list', {
        method: 'post',
        data: query,
      })
    },
    view_workflow_view(ids) {
      return request(`/application/workflow/${ids}`, {
        method: 'get',
      })
    },
  }
}

const sscManagementSettingMod = (request) => {
  return {
    view_sscManagementSetting_page(query = {}) {
      return request('/application/sscManagementSetting/page', {
        method: 'post',
        data: query,
      })
    },
    view_sscManagementSetting_add(query = {}) {
      return request('/application/sscManagementSetting/add', {
        method: 'post',
        data: query,
      })
    },
    view_sscManagementSetting_edit(query = {}) {
      return request('/application/sscManagementSetting/edit', {
        method: 'post',
        data: query,
      })
    },
    view_sscManagementSetting_del(query = {}) {
      return request('/application/sscManagementSetting/del', {
        method: 'post',
        data: {
          batchesDel: query,
        },
      })
    },
  }
}
export default ({ request }: any) => ({
  ...ofsSubsidyApplyConfigMod(request),
  ...workflowMod(request),
  ...sscManagementSettingMod(request),
})
